//引入组件库
var do_App = sm("do_App");
var do_Page = sm("do_Page");
var nf = sm("do_Notification");
var communityUtil = require("helper/community");
// 声明UI变量
var root = ui("$"); // $表示当前视图的根UI
var aLayoutRoot = ui("aLayoutRoot");
var labelName = ui("labelName");
// 设置数据绑定的映射关系
root.setMapping({
	"aLayoutRoot.tag" : "id",
	"labelName.text" : "name",
});
aLayoutRoot.on("touch", function() {
	communityUtil.communityVisitId(this.tag);
	do_App.closePage({fromPage:"distance"});
})